<html>
	<head>
		<meta charset="utf-8"></meta>
		<title>BTimeEdit</title>
		<link href="./style.css" rel="stylesheet" type="text/css"/>
	</head>
	<body>
		<div class="class" name="BTimeEdit">
			<h1>BTimeEdit</h1>
			<p>继承自<a href="BWidget.html">BWidget</a></p>
			<p id="resume">BTimeEdit是时间编辑框，以指定的格式显示时间文本。<a href="#desc">详细</a></p>
			<h2>public</h2>
			<table id="public">
				<tr><td align="right"/><td><a href="#BTimeEdit(BWidget*)">BTimeEdit</a>(BWidget* parent = 0);</td></tr>
				<tr><td align="right"/><td><a href="#BTimeEdit(const BTime&,BWidget*)">BTimeEdit</a>(const BTime& time, BWidget* parent = 0);</td></tr>
				<tr><td align="right"/><td><a href="#~BTimeEdit()">~BTimeEdit</a>();</td></tr>
				<tr><td align="right">void </td><td><a href="#setTime(const BTime&)">setTime</a>(const BTime& time);</td></tr>
				<tr><td align="right">const BTime&amp; </td><td><a href="#time()">time</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setFormat(const BString&)">setFormat</a>(const BString& format);</td></tr>
				<tr><td align="right">const BString&amp; </td><td><a href="#format()">format</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setAlign(Align)">setAlign</a>(Align align);</td></tr>
				<tr><td align="right">Align </td><td><a href="#align()">align</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setReadOnly(bool)">setReadOnly</a>(bool readOnly);</td></tr>
				<tr><td align="right">bool </td><td><a href="#readOnly()">readOnly</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setSynchro(bool)">setSynchro</a>(bool synchro);</td></tr>
				<tr><td align="right">bool </td><td><a href="#synchro()">synchro</a>() const;</td></tr>
				<tr><td align="right">virtual BSize </td><td><a href="#sizeHint()">sizeHint</a>() const;</td></tr>
			</table>
			<h2>protected</h2>
			<table id="protected">
				<tr><td align="right">virtual void </td><td><a href="#resizeEvent(const BEvent&)">resizeEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#updateEvent(const BEvent&)">updateEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#styleEvent(const BEvent&)">styleEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#freshEvent(const BEvent&)">freshEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#paintEvent(const BEvent&)">paintEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#focusEvent(const BEvent&)">focusEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#inputEvent(const BEvent&)">inputEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#keyPressEvent(const BKeyEvent&)">keyPressEvent</a>(const BKeyEvent& keyEvent);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#keyReleaseEvent(const BKeyEvent&)">keyReleaseEvent</a>(const BKeyEvent& keyEvent);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#mouseEnterEvent(const BMouseEvent&)">mouseEnterEvent</a>(const BMouseEvent& mouseEvent);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#mouseLeaveEvent(const BMouseEvent&)">mouseLeaveEvent</a>(const BMouseEvent& mouseEvent);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#mousePressEvent(const BMouseEvent&)">mousePressEvent</a>(const BMouseEvent& mouseEvent);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#mouseReleaseEvent(const BMouseEvent&)">mouseReleaseEvent</a>(const BMouseEvent& mouseEvent);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#mouseMoveEvent(const BMouseEvent&)">mouseMoveEvent</a>(const BMouseEvent& mouseEvent);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#mouseWheelEvent(const BMouseEvent&)">mouseWheelEvent</a>(const BMouseEvent& wheelEvent);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#mouseDoubleClickEvent(const BMouseEvent&)">mouseDoubleClickEvent</a>(const BMouseEvent& mouseEvent);</td></tr>
			</table>
			<div id="desc">
				<h2>详细介绍：</h2><p>BTimeEdit是时间编辑框，以指定的格式显示时间文本。</p><p>文本格式的关键词分别是时（H/h），分（M/m），秒（S/s）。忽略大小写，连续多个字符表示其位数，如默认的格式为：HH-MM-SS表示时数为二个数字，分数为二个数字，秒数为二个数字，三者之间都以'-'作间隔。</p><p>注意文本格式需要保持时分秒的顺序，这在编辑时用于提取各分量的数值。</p><h4>信号表：</h4><table>
					<tr><td>Signal_TimeChanged</td><td>当时间值被改变时发出，值为：BTime time。</td></tr>
					<tr><td>Signal_FormatChanged</td><td>当显示格式被改变时发出，值为：BString format。</td></tr>
					<tr><td>Signal_ReadOnly</td><td>当只读模式改变时发出，值为：bool readOnly。</td></tr>
					<tr><td>Signal_EditFinished</td><td>当编辑操作完成时发出，值为：BTime time。</td></tr>
					<tr><td>Signal_TimeEdited</td><td>当编辑操作进行时发出，值为：BTime time。</td></tr></table>
			</div>
			<h2 id="docs">成员文档：</h2>
			<div id="BTimeEdit(BWidget*)">
				<h3>BTimeEdit(BWidget* parent = 0);</h3><p>构造一个时间编辑框，parent指定其父控件。</p>
			</div>
			<div id="BTimeEdit(const BTime&,BWidget*)">
				<h3>BTimeEdit(const BTime&amp; time, BWidget* parent = 0);</h3><p>构造一个时间编辑框，time指定其初始时间值，parent指定其父控件。</p>
			</div>
			<div id="~BTimeEdit()">
				<h3>~BTimeEdit();</h3><p>析构一个时间编辑框。</p>
			</div>
			<div id="setTime(const BTime&)">
				<h3>void setTime(const BTime&amp; time);</h3><p>设置时间值。</p>
			</div>
			<div id="time()">
				<h3>const BTime&amp; time() const;</h3><p>获得时间值。</p>
			</div>
			<div id="setFormat(const BString&)">
				<h3>void setFormat(const BString&amp; format);</h3><p>设置时间显示格式。</p>
			</div>
			<div id="format()">
				<h3>const BString&amp; format() const;</h3><p>获得时间显示格式。</p>
			</div>
			<div id="setAlign(Align)">
				<h3>void setAlign(Align align);</h3><p>设置文本显示的对齐方式。</p>
			</div>
			<div id="align()">
				<h3>Align align() const;</h3><p>获得文本显示的对齐方式。</p>
			</div>
			<div id="setReadOnly(bool)">
				<h3>void setReadOnly(bool readOnly);</h3><p>设置只读模式是否开启。</p>
			</div>
			<div id="readOnly()">
				<h3>bool readOnly() const;</h3><p>获得只读模式是否开启。</p>
			</div>
			<div id="setSynchro(bool)">
				<h3>void setSynchro(bool synchro);</h3><p>设置是否开启同步实时时间。</p>
			</div>
			<div id="synchro()">
				<h3>bool synchro() const;</h3><p>获得当前是否同步实时时间。</p>
			</div>
			<div id="sizeHint()">
				<h3>virtual BSize sizeHint() const;</h3><p>计算格式字符串显示需要的空间。</p>
			</div>
			<div id="resizeEvent(const BEvent&)">
				<h3>virtual void resizeEvent(const BEvent&amp; event);</h3><p>标记此时间编辑框为需要重新调整。</p>
			</div>
			<div id="updateEvent(const BEvent&)">
				<h3>virtual void updateEvent(const BEvent&amp; event);</h3><p>若开启了实时同步功能时更新当前时间。处于编辑时刷新输入光标的闪烁。</p>
			</div>
			<div id="styleEvent(const BEvent&)">
				<h3>virtual void styleEvent(const BEvent&amp; event);</h3><p>样式表取值：</p><table>
					<tr><td>Value_Align</td><td>取值为文本的对齐方式，值为：Align align。</td></tr>
					<tr><td>Value_Format</td><td>取值为显示格式，值为：BString format。</td></tr></table>
			</div>
			<div id="freshEvent(const BEvent&)">
				<h3>virtual void freshEvent(const BEvent&amp; event);</h3><p>若时间值改变时更新其显示文本，更新文本显示布局。</p>
			</div>
			<div id="paintEvent(const BEvent&)">
				<h3>virtual void paintEvent(const BEvent&amp; event);</h3><p>绘制时间文本。</p>
			</div>
			<div id="focusEvent(const BEvent&)">
				<h3>virtual void focusEvent(const BEvent&amp; event);</h3><p>若开启了编辑功能，当获得焦点时选中全部文本，当编辑过程中失去焦点则完成编辑操作。</p>
			</div>
			<div id="inputEvent(const BEvent&)">
				<h3>virtual void inputEvent(const BEvent&amp; event);</h3><p>若开启了编辑功能，获得输入字符串。</p>
			</div>
			<div id="keyPressEvent(const BKeyEvent&)">
				<h3>virtual void keyPressEvent(const BKeyEvent&amp; keyEvent);</h3><p>处理键盘输入进行编辑操作。</p>
			</div>
			<div id="keyReleaseEvent(const BKeyEvent&)">
				<h3>virtual void keyReleaseEvent(const BKeyEvent&amp; keyEvent);</h3><p>处理键盘输入进行编辑操作。</p>
			</div>
			<div id="mouseEnterEvent(const BMouseEvent&)">
				<h3>virtual void mouseEnterEvent(const BMouseEvent&amp; mouseEvent);</h3><p>更新鼠标悬停状态。</p>
			</div>
			<div id="mouseLeaveEvent(const BMouseEvent&)">
				<h3>virtual void mouseLeaveEvent(const BMouseEvent&amp; mouseEvent);</h3><p>更新鼠标悬停状态。</p>
			</div>
			<div id="mousePressEvent(const BMouseEvent&)">
				<h3>virtual void mousePressEvent(const BMouseEvent&amp; mouseEvent);</h3><p>更新鼠标按下的状态。</p>
			</div>
			<div id="mouseReleaseEvent(const BMouseEvent&)">
				<h3>virtual void mouseReleaseEvent(const BMouseEvent&amp; mouseEvent);</h3><p>更新鼠标按下的状态。</p>
			</div>
			<div id="mouseMoveEvent(const BMouseEvent&)">
				<h3>virtual void mouseMoveEvent(const BMouseEvent&amp; mouseEvent);</h3><p>更新鼠标悬停位置。</p>
			</div>
			<div id="mouseWheelEvent(const BMouseEvent&)">
				<h3>virtual void mouseWheelEvent(const BMouseEvent&amp; wheelEvent);</h3><p>通过鼠标滚动进行时间秒的调整。</p>
			</div>
			<div id="mouseDoubleClickEvent(const BMouseEvent&)">
				<h3>virtual void mouseDoubleClickEvent(const BMouseEvent&amp; mouseEvent);</h3><p>在编辑状态下进行双击取词操作。</p>
			</div>
		</div>
	</body>
</html>